package com.idTech;

import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class Emerald_Armor extends ItemArmor implements IArmorTextureProvider {

	public Emerald_Armor(int par1, EnumArmorMaterial par2EnumArmorMaterial,
			int par3, int par4) {
		super(par1, par2EnumArmorMaterial, par3, par4);
		// TODO Auto-generated constructor stub
	}


/*public String getTextureFile()
{
        return "/PabiModBase/textures/items.png";
}*/

public String getArmorTextureFile(ItemStack itemstack)
{
        if(itemstack.itemID == iDTechModBaseJacob.helmetEmerald.itemID || itemstack.itemID == iDTechModBaseJacob.chestplateEmerald.itemID || itemstack.itemID == iDTechModBaseJacob.bootsEmerald.itemID)
        {
                return "/mods/iDTechModBase/textures/items/armor.png";
        }
        if(itemstack.itemID == iDTechModBaseJacob.legsEmerald.itemID)
        {
                return "/mods/iDTechModBase/textures/items/armor_2.png";
        }
        
        else return null;
        //return "/PabiModBase/textures/items";
}

public void registerIcons(IconRegister iconReg) 
{
        if(this.itemID == iDTechModBaseJacob.bootsEmerald.itemID)
        {
        	itemIcon = iconReg.registerIcon("iDTechModBase:bootsEmerald");
        }
        else if (this.itemID == iDTechModBaseJacob.legsEmerald.itemID)
        {
        	itemIcon = iconReg.registerIcon("iDTechModBase:leggingsEmerald");
        }
        else if (this.itemID == iDTechModBaseJacob.chestplateEmerald.itemID)
        {
        	itemIcon = iconReg.registerIcon("iDTechModBase:chestplateEmerald");
        }
        else if (this.itemID == iDTechModBaseJacob.helmetEmerald.itemID)
        {
        	itemIcon = iconReg.registerIcon("iDTechModBase:helmetEmerald");
        }
}
}